package com.antcom.antread.common.core.text;

import java.io.IOException;
import java.util.Properties;

/**
 *  配置文件
 */
public class PropertiesUtil {

    protected static Properties dockingPro ;

    static {
        dockingPro = new Properties();
        try {
            dockingPro.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("docking.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String getDocking(String key) {
        Object obj = dockingPro.get(key);
        if (null == obj)
            return "";
        return obj.toString();
    }
}
